package com.wzd.shoppingService.model.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 拍卖记录表 拍卖记录信息表
 *
 * @author WeiZiDong
 */
@Table(name = "`pms_online_record`")
@Data
@ApiModel("拍卖记录表拍卖记录信息表")
public class PmsOnlineRecord implements Serializable {
    @Id
    @Column(name = "`id`")
    @ApiModelProperty(value = "id", example = "String")
    private String id;
    @Column(name = "`product_id`")
    @ApiModelProperty(value = "商品id", example = "String")
    private String productId;
    @Column(name = "`user_id`")
    @ApiModelProperty(value = "用户（出价人）id", example = "String")
    private String userId;
    @Column(name = "`user_photo`")
    @ApiModelProperty(value = "用户头像", example = "String")
    private String userPhoto;
    @Column(name = "`nick_name`")
    @ApiModelProperty(value = "用户昵称", example = "String")
    private String nickName;
    @Column(name = "`user_phone`")
    @ApiModelProperty(value = "用户手机号", example = "String")
    private String userPhone;
    @Column(name = "`offer_price`")
    @ApiModelProperty(value = "出价金额", example = "1")
    private Integer offerPrice;
    @Column(name = "`increase_amount`")
    @ApiModelProperty(value = "涨幅金额", example = "1")
    private Integer increaseAmount;
    @Column(name = "`add_time`")
    @ApiModelProperty(value = "加价时间", example = "2019-05-05 17:55:31")
    private Date addTime;
    @Column(name = "`winning_status`")
    @ApiModelProperty(value = "竞拍是否成功0-未中标；1-已中标", example = "1")
    private Integer winningStatus;
    @Column(name = "`delete_status`")
    @ApiModelProperty(value = "删除状态0-&gt;未删除；1-&gt;已删除", example = "1")
    private Integer deleteStatus;
    @Column(name = "`revision`")
    @ApiModelProperty(value = "乐观锁", example = "1")
    private Integer revision;
    @Column(name = "`create_by`")
    @ApiModelProperty(value = "创建人", example = "String")
    private String createBy;
    @Column(name = "`create_time`")
    @ApiModelProperty(value = "创建时间", example = "2019-05-05 17:55:31")
    private Date createTime;
    @Column(name = "`update_by`")
    @ApiModelProperty(value = "更新人", example = "String")
    private String updateBy;
    @Column(name = "`update_time`")
    @ApiModelProperty(value = "更新时间", example = "2019-05-05 17:55:31")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
